import request from '@/utils/request'

// 查询施工队标签列表
export function listLabel(constructionPicId) {
  return request({
    url: '/construction/conlabel/conlabel/list/'+constructionPicId,
    method: 'get',
    params: ""
  })
}

// 查询施工队标签详细
export function getLabel(labelId) {
  return request({
    url: '/construction/conlabel/conlabel/' + labelId,
    method: 'get'
  })
}

// 新增施工队标签
export function addLabel(data) {
  return request({
    url: '/construction/conlabel/conlabel/add',
    method: 'post',
    data: data
  })
}

// 修改施工队标签
export function updateLabel(data) {
  return request({
    url: '/construction/conlabel/conlabel/edit',
    method: 'put',
    data: data
  })
}

// 删除施工队标签
export function delLabel(labelId) {
  return request({
    url: '/construction/conlabel/conlabel/' + labelId,
    method: 'delete'
  })
}

// 导出施工队标签
export function exportLabel(query) {
  return request({
    url: '/construction/conlabel/export',
    method: 'get',
    params: query
  })
}
